<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
//use Illuminate\Support\Facades\Schema;

class MiniProgramNav20230811 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('mini_program_nav', function (Blueprint $table) {
            $table->id();
            $table->string('mini_type', 50)->index()->comment('小程序类型');
            $table->string('name')->comment('名称');
            $table->string('desc')->comment('描述');
            $table->string('img')->comment('图片');
            $table->string('app_id')->comment('app_id');
            $table->string('jump_path')->nullable()->comment('跳转路径');
            $table->integer('sort')->default(0)->comment('排序值');
            $table->tinyInteger('is_show')->default(1)->comment('是否显示 1-是 0-否');
            $table->timestamps();
            $table->comment = '小程序导航';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('mini_program_nav');
    }
}
